<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:cmf_plugin_url('UserOther://admin_index/user_other_rank')}">等级管理</a></li>
			<li><a href="{:cmf_plugin_url('UserOther://admin_index/user_other_rank_add')}">添加等级</a></li>
		</ul>
		<form action="/admin/rbac/listorders.html" method="post" class="margin-top-20">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="40">ID</th>
                        <th width="80">排序</th>
						<th align="left">等级名称</th>
                        <th width="220">升级条件</th>
                        <th width="120">折扣</th>
						<th align="left">等级描述</th>
						<th width="60" align="left">状态</th>
						<th width="160">操作</th>
					</tr>
				</thead>
				<tbody>
                	<foreach name="ranklist" item="vo">
					<tr>
						<td>{$vo.id}</td>
                        <td>{$vo.list_order}</td>
						<td>{$vo.name}</td>
                        <td><if condition="$vo['upgradeif'] gt 0">订单金额满{$vo.upgradeif}元<else />不自动升级</if></td>
						<td>{$vo.discount}</td>
                        <td>{$vo.remark}</td>
						<td>
							<if condition="$vo['status'] eq 1">
								<font color="red">√</font>
							<else /> 
								<font color="red">╳</font>
							</if>
						</td>
						<td>
                            <a href="{:cmf_plugin_url('UserOther://admin_index/user_other_rank_edit',array("id"=>$vo["id"]))}">{:lang('EDIT')}</a>
                            <a class="js-ajax-delete" href="{:cmf_plugin_url('UserOther://admin_index/user_other_rank_delete',array("id"=>$vo["id"]))}">{:lang('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>